﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the GNU General Public License version 2 (GPLv2).
// See accompanying file License.txt or copy at http://phuse.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Phuse.TestServer
{
    using System;
    using System.ServiceModel;

    /// <summary>Represents a minimalistic NNTP test server.</summary>
    [ServiceContract]
    internal interface INntpTestServer
    {
        /// <summary>Starts the NNTP test server.</summary>
        /// <param name="port">The port to listen for incomming connections.</param>
        [OperationContract]
        void Start(int port);

        /// <summary>Stops the NNTP test server.</summary>
        [OperationContract]
        void Stop();
    }
}
